package cn.bon.schedule.api.pojo.po;

import cn.bon.schedule.api.enums.WorkType;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 班次管理
 * </p>
 *
 * @author LuoChao
 * @since 2023-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RulesWorkOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 班次id
     */
    @TableId(value = "work_order_id")
    private Long workOrderId;

    /**
     * 班次名称
     */
    @Schema(description = "班次名称")
    private String workOrderName;

    /**
     * 班次类型
     */
    @Schema(description = "班次类型")
    private WorkType workType;

    /**
     * 工时
     */
    @Schema(description = "工时")
    @JsonIgnore
    private Integer manHour;

    /**
     * 上班时间，用于返回前端
     */
    @Schema(description = "上班时间")
    private String timeInfo;

    /**
     * 是否启用：1启用，0废弃
     */
    @Schema(description = "是否启用：1启用，0废弃")
    private Integer stat;

    /**
     * 创建时间
     */
    @JsonIgnore
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 删除标志位
     */
    @JsonIgnore
    private Integer delFlag = 0;


}
